<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
use common\models\Activity\Activity;
use common\models\Activity\ActivitySearch;

/* @var $this yii\web\View */
/* @var $model common\models\Guest\Guest */
/* @var $form yii\widgets\ActiveForm */
$guanggw = ArrayHelper::map(Activity::find()->all(), 'ac_id', 'ac_name');

?>

<div class="guest-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'g_name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'g_position')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'g_company')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'adm_id')->textInput() ?>

    <?= $form->field($model, 'g_state')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'g_description')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'ac_id')->dropdownlist($guanggw) ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
